package com.itheima.example;

import java.io.*;

public class Example06 {
    public static void main(String[] args) throws Exception {
        FileReader fileReader = new FileReader("test.txt");
        int i;
        while ((i = fileReader.read()) != -1) {
            System.out.print((char) i);
        }
        fileReader.close();
    }
}
